﻿package com.dykj.platform.framework.common.paging;

import java.util.List;

public class UIHelper {
	public static void completeResultList(List resultList,Object lineItemObject,Page page){
		int maxRowSize = page.getPageSize();
		int size = resultList.size();
	      int rest = maxRowSize - size;
	      // 如果查询结果集不够最大行数，补满行数
	      if (size < maxRowSize) {
	         for (int i = 0; i < rest; i++) {
	            resultList.add(lineItemObject);
	         }
	      }
	}
}
